import request from "umi-request";

// 请求表格数据
export const getServiceFormData = () => {
  return request
  .get('/getFormData')
}
  

// 请求商品种类接口
export const getServiceGoodsType = () => {
  return request
    .get('/getGoodsType')
  }

// 请求商品规格接口
export const getServiceGoodsNorms = () => {
  return request
    .get('/getGoodsNorms')
    }

// 请求删除接口
export const deleteServiceGoods = <T>(data: T) => {
  return request.post('/delete', {data})
}

// 请求搜索接口
export const searchGoods = <T extends Object>(params: T) => {
  return request.get('/search', {
    params
  })
}

// 请求重置接口
export const resetGoods = () => {
  return request.get('/reset')
}